package xyz.syyrjx.blog.dao.blog;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xyz.syyrjx.blog.entity.Blog;

import java.util.List;

@Mapper
public interface BlogDao {
    public int countBlogs(Blog template);
    public List<Blog> selectBlogs(Blog template,Integer start,Integer num);
    public int insertBlog(Blog blog);
    public int deleteBlogById(Long id);
    public int updateBlogId(Long id);
    public int updateBlog(Blog blog);

    public int updateView(Blog blog);
}
